package com.mall.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.math3.stat.descriptive.summary.Product;

import javax.validation.constraints.NotBlank;

/**
 * 抽奖设置对象 t_award_product
 *
 * @author ruoyi
 * @date 2025-04-03
 */
@Data
@TableName(value = "t_award_product")
@EqualsAndHashCode(callSuper = true)
public class TAwardProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "商品Id"
     */
    @Excel(name = "商品Id")
    @NotBlank(message = "商品Id不能为空")
    private String productId;
    /**
     * "活动开启状态 0 未开启 1 开始"
     */
    @Excel(name = "活动开启状态 0 未开启 1 开始")
    private String status;


    /**
     * "产品名称"
     */
    @TableField(exist = false)
    private String productName;


    /**
     * "产品图片"
     */
    @TableField(exist = false)
    private String productImage;


    /**
     * "产品信息"
     */
    @TableField(exist = false)
    private TProduct product;




}
